package com.example.asapp.demo.record;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

@Service
public class RecordService {

    @Autowired
    RecordDao recordDao;

    public List<Record> findAll() {
        return recordDao.findAll();
    }

    public Record saveOne(Record record) {
        return recordDao.save(record);
    }

    public void deleteByPrimary(String id) {
      recordDao.deleteById(id);
    }
}
